#!/bin/bash
PROJECT_NAME=stevejrong-blog-eureka

BRANCH_NAME=develop-1.0.0

echo ==================================================
echo Script startup for updating $PROJECT_NAME code
echo ==================================================

echo "-------------------- starting update"
cd /
cd /home/git-repository/$PROJECT_NAME
echo -e " -------------------- into $PROJECT_NAME git directory\n"

git pull origin $BRANCH_NAME
echo -e " -------------------- updated $BRANCH_NAME branch codes.\n"

echo =================================================
echo Update $PROJECT_NAME codes completed from git!
echo =================================================